package com.niuwa.p2p.service.impl.credit;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.niuwa.p2p.dao.credit.StudentCreditInfoDao;
import com.niuwa.p2p.entity.credit.StudentCreditInfo;
import com.niuwa.p2p.service.credit.NwStudentCreditService;

@Service
public class NwStudentCreditServiceImpl implements NwStudentCreditService {
	@Autowired
	private StudentCreditInfoDao studentCreditInfoDao;

	@Override
	public void insertCreditInfo(StudentCreditInfo entity) {
		studentCreditInfoDao.insert(entity);

	}

	@Override
	public StudentCreditInfo selectByUserNO(String platFromUserNo) {
		return studentCreditInfoDao.selectByUserNO(platFromUserNo);
	}
}
